package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.model.po.SysCompanyPO;
import com.hawthorn.admin.repository.provider.SysCompanySqlProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;
import com.hawthorn.platform.repository.DBMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 系统公司组织表(sys_company) Mapper 接口</p>
 * @author: andyten@tom.com | xukaixing@hotmail.com
 * @created: 2022-06-21
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten@tom.com | xukaixing@hotmail.com
 */
@Repository
public interface SysCompanyMapper extends DBMapper<SysCompanyPO>
{
  @SelectProvider(SysCompanySqlProvider.class)
  IPage<Map<String, Object>> findCompanies(Page<Map<String, Object>> page, String qc);
  @SelectProvider(SysCompanySqlProvider.class)
  Integer checkCompany(SysCompanyPO cname);
  @SelectProvider(SysCompanySqlProvider.class)
  List<Map<String, Object>> exportCompanies(String fields, String qc);
  @SelectProvider(SysCompanySqlProvider.class)
  Integer findCid(long id);
}
